package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 业务付款方式 (0: 余额, 1: 微信, 2: 支付宝, 3: 现金)
 */
@Getter
public enum BusinessPayMethod {
    BALANCE(0, "余额"),
    WECHAT(1, "微信"),
    ALIPAY(2, "支付宝"),
    CASH(3, "现金");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    BusinessPayMethod(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
